package com.ruoyi.buss.report.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.report.mapper.ReportWgzyscShLsbMapper;
import com.ruoyi.buss.report.domain.ReportWgzyscShLsb;
import com.ruoyi.buss.report.service.IReportWgzyscShLsbService;

/**
 * 网格专业市场报表Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class ReportWgzyscShLsbServiceImpl implements IReportWgzyscShLsbService 
{
    @Autowired
    private ReportWgzyscShLsbMapper reportWgzyscShLsbMapper;

    /**
     * 查询网格专业市场报表
     * 
     * @param sjrq 网格专业市场报表ID
     * @return 网格专业市场报表
     */
    @Override
    public ReportWgzyscShLsb selectReportWgzyscShLsbById(String sjrq)
    {
        return reportWgzyscShLsbMapper.selectReportWgzyscShLsbById(sjrq);
    }

    /**
     * 查询网格专业市场报表列表
     * 
     * @param reportWgzyscShLsb 网格专业市场报表
     * @return 网格专业市场报表
     */
    @Override
    public List<ReportWgzyscShLsb> selectReportWgzyscShLsbList(ReportWgzyscShLsb reportWgzyscShLsb)
    {
        return reportWgzyscShLsbMapper.selectReportWgzyscShLsbList(reportWgzyscShLsb);
    }

    /**
     * 新增网格专业市场报表
     * 
     * @param reportWgzyscShLsb 网格专业市场报表
     * @return 结果
     */
    @Override
    public int insertReportWgzyscShLsb(ReportWgzyscShLsb reportWgzyscShLsb)
    {
        reportWgzyscShLsb.setCreateTime(DateUtils.getNowDate());
        return reportWgzyscShLsbMapper.insertReportWgzyscShLsb(reportWgzyscShLsb);
    }

    /**
     * 修改网格专业市场报表
     * 
     * @param reportWgzyscShLsb 网格专业市场报表
     * @return 结果
     */
    @Override
    public int updateReportWgzyscShLsb(ReportWgzyscShLsb reportWgzyscShLsb)
    {
        return reportWgzyscShLsbMapper.updateReportWgzyscShLsb(reportWgzyscShLsb);
    }

    /**
     * 批量删除网格专业市场报表
     * 
     * @param sjrqs 需要删除的网格专业市场报表ID
     * @return 结果
     */
    @Override
    public int deleteReportWgzyscShLsbByIds(String[] sjrqs)
    {
        return reportWgzyscShLsbMapper.deleteReportWgzyscShLsbByIds(sjrqs);
    }

    /**
     * 删除网格专业市场报表信息
     * 
     * @param sjrq 网格专业市场报表ID
     * @return 结果
     */
    @Override
    public int deleteReportWgzyscShLsbById(String sjrq)
    {
        return reportWgzyscShLsbMapper.deleteReportWgzyscShLsbById(sjrq);
    }
}
